package com.mc.cloud.mall.categoryProduct.service;

import com.github.pagehelper.PageInfo;
import com.mc.cloud.mall.categoryProduct.model.pojo.Product;
import com.mc.cloud.mall.categoryProduct.model.vo.AddProduct;
import com.mc.cloud.mall.common.common.MallRestResponse;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface AdminProductService {
    void addProduct(AddProduct addProduct);
    
    //上传图片
    MallRestResponse upload(HttpServletRequest request, MultipartFile file);
    
    void updateProduct(Product product);
    
    void deleteProduct(Integer id);
    
    void batchUpdateSellStatus(Integer[] ids, Integer sellStatus);
    
    PageInfo productList(Integer pageSize, Integer pageNum);
}
